package com.smart.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_article")
public class Article {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long articleAuthor;
    private Date articleDate;
    private String articleContent;
    private String articleTitle;
    private Integer articleState;
    private Integer articleClass;
    private String articleSummary;
}
